Forward Engineering Models

You can generate a physical database schema from a physical model using the Forward Engineering process.

This topic walks you through the steps to forward engineer a MongoDB model. Similarly, you can forward engineer a model to your Cassandra Keyspace and Couchbase Bucket.

To forward engineer a model:

  1. Open your MongoDB model in erwin Data Modeler (DM).

    Note: Ensure that you are in the Physical mode.

    For example, the following image uses a MongoDB model with two collections.

  2. Click Actions > Schema.
    The Forward Engineer Schema Generation Wizard appears.

  3. Click Option Selection.
    The Option Selection section displays the default option set. Clear the Drop check boxes and select other syntax check boxes as required.

  4. Click Next.
    The Collection Filter section appears. It displays a list of collections available in your model.

  5. Select the collections that you want to forward engineer.

  6. Click Preview to view the schema script.

    Use the following options:

    • Auto Error Check: Select this option to enable auto error check by the forward engineering wizard.

    • Error Check (): Use this option to run an error check. Based on the results, you can correct the generated script.

    • Text Options (): Use this option to configure the preview text editor's look and feel, such as window, font, syntax color settings. For more information, refer to the Forward Engineering Wizard - Preview Editor topic.

    • Save (): Use this option to save the generated script in the JSON or BSON format.

  7. Click Generate.
    The forward engineering process starts. The script generates your physical database schema. You can access your database and verify the newly generated schema.